package cn.com.scitc.soft2101.dao;

import cn.com.scitc.soft2101.db.MyBatisHelper;
import cn.com.scitc.soft2101.mapper.PaidtypesMapper;
import cn.com.scitc.soft2101.mapper.UserMapper;
import cn.com.scitc.soft2101.model.Paidtypes;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class PaidTypeDao {
    public List<Paidtypes> findAll() {
        try (SqlSession session = MyBatisHelper.getSessionFactory().openSession()) {
            PaidtypesMapper mapper = session.getMapper(PaidtypesMapper.class);
            return mapper.selectAll();
        }
    }
}
